package nba.com.adapter;

import nba.com.activity.R;
import nba.com.data.TableData;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TableLayout;

public class MatchIntelligenceAdapter
{
	public static View fillData(Context context,TableData handicapTableData,TableData totalTableData)
	{
		LayoutInflater mInflater = LayoutInflater.from(context);
		View view=mInflater.inflate(R.layout.match_sub_intelligence, null);
		
		TableLayout scoresTableLayout=(TableLayout)view.findViewById(R.id.handicap_table);//match_statistic_table
	    TableAdapter.fillTable(handicapTableData, scoresTableLayout);
	    
	    TableLayout statisticTableLayout=(TableLayout)view.findViewById(R.id.total_table);//match_statistic_table
	    TableAdapter.fillTable(totalTableData, statisticTableLayout);
		
		return view;
	}
}
